<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Count the number of elements in the Judy array</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="judy.construct.html">Judy::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="judy.destruct.html">Judy::__destruct</a></div>
 <div class="up"><a href="class.judy.html">Judy</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="judy.count" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Judy::count</h1>
  <p class="verinfo">(PECL judy &gt;= 0.1.1)</p><p class="refpurpose"><span class="refname">Judy::count</span> &mdash; <span class="dc-title">Count the number of elements in the <a href="class.judy.html" class="classname">Judy</a> array</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-judy.count-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><strong>Judy::count</strong></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$index_start</code><span class="initializer"> = 0</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$index_end</code><span class="initializer"> = -1</span></span>
  ]] )</div>

  <p class="para rdfs-comment">
   Count the number of elements in the <a href="class.judy.html" class="classname">Judy</a> array.
  </p>
  
 </div>

 
 <div class="refsect1 parameters" id="refsect1-judy.count-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">index_start</code></em></dt>

    <dd>

     <p class="para">
      Start counting from the given index. Default is first index.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">index_end</code></em></dt>

    <dd>

     <p class="para">
      Stop counting when reaching this index. Default is last index.
     </p>
    </dd>

   
  </dl>

 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-judy.count-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Return the number of elements.
  </p>
 </div>

 
 
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="judy.construct.html">Judy::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="judy.destruct.html">Judy::__destruct</a></div>
 <div class="up"><a href="class.judy.html">Judy</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
